package com.ocom.common.request.human;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

@Data
public class FaceFeatureRequest {

    @NotNull(message = "单位编号 不能为空")
    private Long comId;

    //用户状态 是否已删除  0正常  1已删除
    Integer status ;

    @JsonProperty("pCode")
    private String pCode;

    @JsonProperty("pName")
    private String pName;

    //最小人脸质量
    @Max(value = 1 ,message = "minFaceProbability 最大1")
    private float minFaceProbability = 0;

    //最小特征值质量
    @Max(value = 1 ,message = "minLandmark72Probability 最大1")
    private float minLandmark72Probability = 0;

    //人脸数  默认1  一般 0或者1
    private Integer faceNum = 1;

    // 0 正常  18 qps问题 222204 图片下载失败
    private Integer errCode;

    //minFaceProbability 按人脸质量排序   minLandmark72Probability 按特征值质量排序
    private String orderByAsc  = "minLandmark72Probability";


    Integer page = 1 ;
    Integer size = 50 ;
}
